package com.zhaozhaonews.api.article.fallback;


import com.zhaozhaonews.api.article.IArticleClient;
import com.zhaozhaonews.model.article.dto.ArticleDto;
import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @author WanJl
 * @version 1.0
 * @title ArticleClientFallback
 * @description ArticleClient失败逻辑
 * @create 2025/2/20
 */
@Component
public class ArticleClientFallback implements IArticleClient {
    @Override
    public ResponseResult save(ArticleDto articleDto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }
}
